
export class PinCode {
  static from(value: string): PinCode {
    return new PinCode(value);
  }

  value: string;
  constructor(value: string = ""){
    this.value = value;
  }

  toString(): string {
    return this.value;
  }
}


export function test() {
  const v = "hello world";
  const p = new PinCode(v);

  console.log(p.toString() == v);
  console.log(p.value == v);
}
